import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import details from '@/components/details'
// import comment from '@/components/comment'
import login from '@/components/login'
import register from '@/components/register'
import order from '@/components/order'
import shoppingCar from '@/components/shopping_car'
import mycenter from '@/components/mycenter'








Vue.use(Router)


export default new Router({
  routes: [
    {
      path: '/',
      component: index,
      
    },
    {
      path: '/details',
      component: details,
      
    },
    {
      path: '/login',
      component: login,
    },
    {
      path: '/register',
      component: register,
    },
    {
      path: '/order',
      component: order,
      
    },
    {
      path: '/car',
      component: shoppingCar,
      
    },
    {
      path:'/mycenter',
      component: mycenter
    }


  ]
})
